﻿<Window x:Class="WPGDemoApp.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpg="clr-namespace:WPG;assembly=WPG"
        Title="Window1" Height="300" Width="300">
    <DockPanel VerticalAlignment="Stretch" >
        <Button DockPanel.Dock="Top" x:Name="btn" Click="btn_Click">button for test</Button>
        <wpg:PropertyGrid  DockPanel.Dock="Top" Instance="{Binding ElementName=btn}"  VerticalAlignment="Stretch" IsEnabled="True"></wpg:PropertyGrid>
    </DockPanel>
</Window>